import {actions} from '../base';

let url = 'admin/api/client-config';

export default {
    namespaced: true,
    state: {
        all: [],
        options: {
            // type: {
            //     1: {label: '基础货币', value: 1, },
            //     2: {label: '装备', value: 2, },
            // },
        },
        request: {
            all: false,
        },
    },
    mutations: {
        SET_ALL (state, data) {
            state.all = data;
        },
        SET_REQUESTING (state, name) {
            state.request[name] = true;
        },
        SET_REQUESTED (state, name) {
            state.request[name] = false;
        }
    },
    actions: actions(url),
    getters: {},
};
